package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Message;
import cn.wolfcode.trip.base.query.LetterQuery;
import com.github.pagehelper.PageInfo;

public interface ILetterService {
    PageInfo queryForPage(LetterQuery qo);
    void updateLetterState(int isnew,Long userId);

    /**
     * 发送私信
     * @param letter
     * @param reciverId 接收者id
     */
    void sendLetters(Message letter, Long reciverId);

    /**
     * 查询我发送过的游记
     * @param qo
     * @return
     */
    PageInfo querySentLettersForPage(LetterQuery qo);


    /**
     * 批量删除
     * @param ids
     */
    void batshDelete(Long[] ids,String type);

    /**
     * 清空私信
     * @param userId
     * @param type DELETE_MY_RECIVE:代表清空我接收到的私信；DELETE_MY_SENT代表清空我发送的私信
     */
    void clearLetters(Long userId,String type);
}
